package linc.cool.framework.register;

import com.google.common.collect.Maps;

import java.util.Map;

/**
 * @author yqlin
 * @date 2022/3/11 4:31 上午
 * @description 本地注册
 */
public class LocalRegister {
    private static final Map<String, Class<?>> REGISTER = Maps.newHashMap();

    public static void register(String interfaceName, Class<?> implClass) {
        REGISTER.put(interfaceName, implClass);
    }

    public static Class<?> get(String interfaceName) {
        return REGISTER.get(interfaceName);
    }
}
